package mest.service.Modeling;

import mest.VO.Modeling.WorkrouteWork_manytomany.workVO;
import mest.entity.work_route;
import mest.entity.workroutework_manytomany;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-16 22:08
 */
public interface IworkRouteService {
    //    1.新增功能
    int insertWorkRouteType(work_route ct,String theirDb)   ;

    //   2.基本查询-数量
    int selectCount(String theirDb);

    //   3.基本查询-分页
    List<work_route> findWorkRoutePage(int index, int pageSize,String theirDb);

    //  toolbar  添加工序功能中的查看工序内容         --分页
    List<workVO> findWorkByWRId(int id, int index, int pageSize,String theirDb);
    //  toolbar  添加工序功能中的查看工序内容         --数量
    int WorkCount(@Param("id") int id,String theirDb);

    //toolbar  添加工序功能中的添加多对多关系功能
    int insertManytomany_WorkAndWorkRoute(workroutework_manytomany wwmtm,String theirDb);

    // toolbar 修改多对多的工序内容
    int updateManytomany_WorkAndWorkRoute(workVO wwmtm,String theirDb);
}
